-----------------------------------------------------------------------------------------------------
       log: Table 4_Heckman-Poisson Estimation Results.log
  log type:  text

. 
. use "QATARAID_PANEL_ESTIMATIONS.dta", clear
(QATARAID)

. 
. ** Table 4_Heckman-Poisson Estimation Results (2014-2021)
. tab year

the year of |
        aid |
interaction |      Freq.     Percent        Cum.
------------+-----------------------------------
       2014 |        194       12.50       12.50
       2015 |        194       12.50       25.00
       2016 |        194       12.50       37.50
       2017 |        194       12.50       50.00
       2018 |        194       12.50       62.50
       2019 |        194       12.50       75.00
       2020 |        194       12.50       87.50
       2021 |        194       12.50      100.00
------------+-----------------------------------
      Total |      1,552      100.00

. **Model 1
. heckpoisson aidinteractions L.political_interests L.mediation_new muslimmajority arableague L.ln_qa
> tarimports_un_v2   L.ln_gdp_per_capita_WB L.ln_pop dumcovid, select (aidstatus= L.aidstatus L.polit
> ical_interests L.mediation_new muslimmajority arableague L.ln_qatarimports_un_v2  L.ln_gdp_per_capi
> ta_WB L.ln_pop  dumcovid)

Initial:      Log likelihood = -1351.1098
Rescale:      Log likelihood = -1351.1098
Rescale eq:   Log likelihood = -1336.8509
(setting technique to bhhh)
Iteration 0:  Log likelihood = -1336.8509  
Iteration 1:  Log likelihood = -1331.6957  
Iteration 2:  Log likelihood = -1318.3081  
Iteration 3:  Log likelihood = -1312.6444  
Iteration 4:  Log likelihood = -1306.3368  
Iteration 5:  Log likelihood = -1304.9526  
Iteration 6:  Log likelihood = -1303.0046  
Iteration 7:  Log likelihood = -1302.2858  
Iteration 8:  Log likelihood =  -1301.583  
Iteration 9:  Log likelihood = -1301.1918  
(switching technique to nr)
Iteration 10: Log likelihood =  -1300.872  
Iteration 11: Log likelihood = -1300.1053  
Iteration 12: Log likelihood = -1300.1028  
Iteration 13: Log likelihood = -1300.1028  

Poisson regression with endogenous selection    Number of obs     =      1,329
(25 quadrature points)                                Selected    =        400
                                                      Nonselected =        929

                                                Wald chi2(8)      =      89.89
Log likelihood = -1300.103                      Prob > chi2       =     0.0000

---------------------------------------------------------------------------------------
      aidinteractions | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
----------------------+----------------------------------------------------------------
aidinteractions       |
  political_interests |
                  L1. |   .0092217   .0099035     0.93   0.352    -.0101889    .0286322
                      |
        mediation_new |
                  L1. |   .5610081   .2397947     2.34   0.019     .0910192    1.030997
                      |
       muslimmajority |   .3598034   .1338955     2.69   0.007      .097373    .6222338
           arableague |   .6932428   .1215213     5.70   0.000     .4550654    .9314202
                      |
ln_qatarimports_un_v2 |
                  L1. |   .0326265     .01591     2.05   0.040     .0014435    .0638096
                      |
 ln_gdp_per_capita_WB |
                  L1. |  -.0865828   .0625275    -1.38   0.166    -.2091345     .035969
                      |
               ln_pop |
                  L1. |   .0183671   .0404319     0.45   0.650     -.060878    .0976122
                      |
             dumcovid |   .0952159   .0966682     0.98   0.325    -.0942503    .2846821
                _cons |   .7203633   .8704614     0.83   0.408    -.9857098    2.426436
----------------------+----------------------------------------------------------------
aidstatus             |
            aidstatus |
                  L1. |   .9275201   .0969756     9.56   0.000     .7374514    1.117589
                      |
  political_interests |
                  L1. |   .0393562   .0097919     4.02   0.000     .0201644    .0585479
                      |
        mediation_new |
                  L1. |   .2005703   .4415928     0.45   0.650    -.6649358    1.066076
                      |
       muslimmajority |   .6886569   .1231499     5.59   0.000     .4472875    .9300264
           arableague |    .016911   .1696342     0.10   0.921    -.3155659    .3493878
                      |
ln_qatarimports_un_v2 |
                  L1. |   .0251409   .0148376     1.69   0.090    -.0039403    .0542221
                      |
 ln_gdp_per_capita_WB |
                  L1. |  -.2977664    .046654    -6.38   0.000    -.3892067   -.2063262
                      |
               ln_pop |
                  L1. |   .0473152   .0342939     1.38   0.168    -.0198996    .1145299
                      |
             dumcovid |   .0707213   .0947433     0.75   0.455    -.1149721    .2564147
                _cons |   .4194215    .760827     0.55   0.581    -1.071772    1.910615
----------------------+----------------------------------------------------------------
              /athrho |  -.8513345   .2796136    -3.04   0.002    -1.399367   -.3033019
             /lnsigma |  -.5171304   .0977186    -5.29   0.000    -.7086553   -.3256056
----------------------+----------------------------------------------------------------
                  rho |   -.691766   .1458072                     -.8852148   -.2943314
                sigma |    .596229   .0582626                      .4923057      .72209
---------------------------------------------------------------------------------------
Wald test of indep. eqns. (rho = 0): chi2(1) =     9.27   Prob > chi2 = 0.0023

. outreg2 using Table4.xls, bdec(4) pvalue tdec(4) asterisk(coef) drop(year*)   replace
Table4.xls
dir : seeout

. 
. **Model 2
. heckpoisson aidinteractions L.political_interests L.mediation_new muslimmajority arableague L.ln_qa
> tarimports_un_v2  L.lninfant L.ln_pop dumcovid , select (aidstatus= L.aidstatus L.political_interes
> ts L.mediation_new muslimmajority arableague L.ln_qatarimports_un_v2  L.lninfant L.ln_pop dumcovid 
> )

Initial:      Log likelihood = -1422.1001
Rescale:      Log likelihood = -1422.1001
Rescale eq:   Log likelihood = -1416.9114
(setting technique to bhhh)
Iteration 0:  Log likelihood = -1416.9114  
Iteration 1:  Log likelihood = -1361.9862  
Iteration 2:  Log likelihood = -1352.3836  
Iteration 3:  Log likelihood = -1348.7588  
Iteration 4:  Log likelihood = -1345.5633  
Iteration 5:  Log likelihood =  -1344.564  
Iteration 6:  Log likelihood =  -1343.944  
Iteration 7:  Log likelihood = -1343.6806  
Iteration 8:  Log likelihood = -1343.5138  
Iteration 9:  Log likelihood = -1343.4276  
(switching technique to nr)
Iteration 10: Log likelihood =  -1343.368  
Iteration 11: Log likelihood = -1343.2614  
Iteration 12: Log likelihood = -1343.2612  
Iteration 13: Log likelihood = -1343.2612  

Poisson regression with endogenous selection    Number of obs     =      1,309
(25 quadrature points)                                Selected    =        408
                                                      Nonselected =        901

                                                Wald chi2(8)      =      98.41
Log likelihood = -1343.261                      Prob > chi2       =     0.0000

---------------------------------------------------------------------------------------
      aidinteractions | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
----------------------+----------------------------------------------------------------
aidinteractions       |
  political_interests |
                  L1. |  -.0007391   .0089671    -0.08   0.934    -.0183142     .016836
                      |
        mediation_new |
                  L1. |   .4740889   .2176174     2.18   0.029     .0475667    .9006111
                      |
       muslimmajority |   .3066079   .1296069     2.37   0.018     .0525831    .5606327
           arableague |   .7988177   .1279564     6.24   0.000     .5480277    1.049608
                      |
ln_qatarimports_un_v2 |
                  L1. |   .0180226   .0157222     1.15   0.252    -.0127924    .0488376
                      |
             lninfant |
                  L1. |  -.0489791   .0726746    -0.67   0.500    -.1914186    .0934605
                      |
               ln_pop |
                  L1. |   .0406107   .0431261     0.94   0.346    -.0439149    .1251364
                      |
             dumcovid |   .1401951    .096262     1.46   0.145    -.0484751    .3288652
                _cons |    .059915   .6614959     0.09   0.928    -1.236593    1.356423
----------------------+----------------------------------------------------------------
aidstatus             |
            aidstatus |
                  L1. |   1.009889   .0930168    10.86   0.000      .827579    1.192198
                      |
  political_interests |
                  L1. |   .0309241    .009288     3.33   0.001     .0127198    .0491283
                      |
        mediation_new |
                  L1. |   .4205604   .4095702     1.03   0.304    -.3821825    1.223303
                      |
       muslimmajority |   .6811157    .119994     5.68   0.000     .4459317    .9162997
           arableague |   .0281583   .1681608     0.17   0.867    -.3014309    .3577474
                      |
ln_qatarimports_un_v2 |
                  L1. |   .0053106   .0145684     0.36   0.715    -.0232431    .0338642
                      |
             lninfant |
                  L1. |   .2494212   .0596377     4.18   0.000     .1325334    .3663089
                      |
               ln_pop |
                  L1. |   .0976125   .0323658     3.02   0.003     .0341767    .1610484
                      |
             dumcovid |   .0744429    .092765     0.80   0.422    -.1073731    .2562589
                _cons |  -3.453734   .4184809    -8.25   0.000    -4.273942   -2.633527
----------------------+----------------------------------------------------------------
              /athrho |  -1.121454   .2600664    -4.31   0.000    -1.631174   -.6117329
             /lnsigma |  -.3971011   .0887652    -4.47   0.000    -.5710778   -.2231245
----------------------+----------------------------------------------------------------
                  rho |   -.808074   .0902473                     -.9262286   -.5453458
                sigma |    .672266   .0596739                      .5649162    .8000153
---------------------------------------------------------------------------------------
Wald test of indep. eqns. (rho = 0): chi2(1) =    18.59   Prob > chi2 = 0.0000

. outreg2 using Table4.xls, bdec(4) pvalue tdec(4) asterisk(coef) drop(year*)  append 
Table4.xls
dir : seeout

. 
. **Model 3
. heckpoisson aidinteractions L.political_interests L.mediation_new qatarblockade muslimmajority arab
> league L.ln_qatarimports_un_v2   L.ln_gdp_per_capita_WB L.ln_pop dumcovid, select (aidstatus= L.aid
> status L.political_interests L.mediation_new qatarblockade muslimmajority arableague L.ln_qatarimpo
> rts_un_v2  L.ln_gdp_per_capita_WB L.ln_pop dumcovid)

Initial:      Log likelihood = -1817.0561
Rescale:      Log likelihood =  -1475.639
Rescale eq:   Log likelihood = -1376.0796
(setting technique to bhhh)
Iteration 0:  Log likelihood = -1376.0796  
Iteration 1:  Log likelihood = -1327.3244  
Iteration 2:  Log likelihood = -1308.7959  
Iteration 3:  Log likelihood = -1297.3887  
Iteration 4:  Log likelihood = -1295.5788  
Iteration 5:  Log likelihood = -1290.1367  
Iteration 6:  Log likelihood = -1288.9577  
Iteration 7:  Log likelihood = -1288.5752  
Iteration 8:  Log likelihood = -1288.3197  
Iteration 9:  Log likelihood =  -1288.274  
(switching technique to nr)
Iteration 10: Log likelihood = -1288.1762  
Iteration 11: Log likelihood = -1287.9783  
Iteration 12: Log likelihood = -1287.9534  
Iteration 13: Log likelihood = -1287.9338  
Iteration 14: Log likelihood = -1287.9338  

Poisson regression with endogenous selection    Number of obs     =      1,329
(25 quadrature points)                                Selected    =        400
                                                      Nonselected =        929

                                                Wald chi2(9)      =      92.08
Log likelihood = -1287.934                      Prob > chi2       =     0.0000

---------------------------------------------------------------------------------------
      aidinteractions | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
----------------------+----------------------------------------------------------------
aidinteractions       |
  political_interests |
                  L1. |   .0055053   .0091771     0.60   0.549    -.0124815    .0234921
                      |
        mediation_new |
                  L1. |   .5305868   .2221444     2.39   0.017     .0951918    .9659818
                      |
        qatarblockade |  -.6205233   .1996868    -3.11   0.002    -1.011902   -.2291444
       muslimmajority |   .3570844   .1350332     2.64   0.008     .0924242    .6217446
           arableague |   .7270942   .1218854     5.97   0.000     .4882032    .9659852
                      |
ln_qatarimports_un_v2 |
                  L1. |   .0274992   .0157758     1.74   0.081    -.0034207    .0584192
                      |
 ln_gdp_per_capita_WB |
                  L1. |  -.0694465   .0632486    -1.10   0.272    -.1934115    .0545186
                      |
               ln_pop |
                  L1. |   .0105137   .0396398     0.27   0.791     -.067179    .0882063
                      |
             dumcovid |   .0973414   .0952498     1.02   0.307    -.0893447    .2840274
                _cons |   .8427645   .8553718     0.99   0.324    -.8337335    2.519262
----------------------+----------------------------------------------------------------
aidstatus             |
            aidstatus |
                  L1. |   .9229401    .096972     9.52   0.000     .7328784    1.113002
                      |
  political_interests |
                  L1. |   .0358721   .0098481     3.64   0.000     .0165702    .0551741
                      |
        mediation_new |
                  L1. |   .0774752    .431826     0.18   0.858    -.7688881    .9238385
                      |
        qatarblockade |  -.6091774   .2164426    -2.81   0.005    -1.033397   -.1849576
       muslimmajority |   .7518772   .1255018     5.99   0.000     .5058983    .9978562
           arableague |   .1759055   .1803735     0.98   0.329      -.17762    .5294311
                      |
ln_qatarimports_un_v2 |
                  L1. |    .021328   .0149064     1.43   0.152     -.007888     .050544
                      |
 ln_gdp_per_capita_WB |
                  L1. |  -.2911597   .0469753    -6.20   0.000    -.3832296   -.1990898
                      |
               ln_pop |
                  L1. |   .0541225   .0345517     1.57   0.117    -.0135976    .1218427
                      |
             dumcovid |   .0950337   .0951804     1.00   0.318    -.0915165    .2815839
                _cons |   .2828588   .7677192     0.37   0.713    -1.221843    1.787561
----------------------+----------------------------------------------------------------
              /athrho |  -1.069235   .3406172    -3.14   0.002    -1.736833    -.401638
             /lnsigma |  -.5181401   .1081701    -4.79   0.000    -.7301496   -.3061305
----------------------+----------------------------------------------------------------
                  rho |   -.789173   .1284828                     -.9398582   -.3813496
                sigma |   .5956273   .0644291                      .4818369    .7362905
---------------------------------------------------------------------------------------
Wald test of indep. eqns. (rho = 0): chi2(1) =     9.85   Prob > chi2 = 0.0017

. outreg2 using Table4.xls, bdec(4) pvalue tdec(4) asterisk(coef) drop(year*)  append 
Table4.xls
dir : seeout

. 
. 
. **Model 4
. heckpoisson aidinteractions L.political_interests L.mediation_new qatarblockade muslimmajority arab
> league L.ln_qatarimports_un_v2  L.lninfant L.ln_pop dumcovid, select (aidstatus= L.aidstatus L.poli
> tical_interests L.mediation_new qatarblockade muslimmajority arableague L.ln_qatarimports_un_v2  L.
> lninfant L.ln_pop dumcovid)

Initial:      Log likelihood = -1402.6724
Rescale:      Log likelihood = -1402.6724
Rescale eq:   Log likelihood = -1377.1781
(setting technique to bhhh)
Iteration 0:  Log likelihood = -1377.1781  
Iteration 1:  Log likelihood = -1350.8163  
Iteration 2:  Log likelihood = -1337.2449  
Iteration 3:  Log likelihood = -1335.7504  
Iteration 4:  Log likelihood = -1331.1707  
Iteration 5:  Log likelihood = -1330.4748  
Iteration 6:  Log likelihood = -1329.8086  
Iteration 7:  Log likelihood = -1329.6252  
Iteration 8:  Log likelihood = -1329.4564  
Iteration 9:  Log likelihood = -1329.4036  
(switching technique to nr)
Iteration 10: Log likelihood =  -1329.349  
Iteration 11: Log likelihood = -1329.2756  
Iteration 12: Log likelihood = -1329.2755  

Poisson regression with endogenous selection    Number of obs     =      1,309
(25 quadrature points)                                Selected    =        408
                                                      Nonselected =        901

                                                Wald chi2(9)      =      98.99
Log likelihood = -1329.276                      Prob > chi2       =     0.0000

---------------------------------------------------------------------------------------
      aidinteractions | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
----------------------+----------------------------------------------------------------
aidinteractions       |
  political_interests |
                  L1. |  -.0032852   .0086207    -0.38   0.703    -.0201815    .0136111
                      |
        mediation_new |
                  L1. |   .4534715   .2213979     2.05   0.041     .0195396    .8874034
                      |
        qatarblockade |  -.6224124   .2057893    -3.02   0.002    -1.025752   -.2190728
       muslimmajority |   .3148723   .1262916     2.49   0.013     .0673453    .5623992
           arableague |   .8156111    .130097     6.27   0.000     .5606256    1.070597
                      |
ln_qatarimports_un_v2 |
                  L1. |   .0164328   .0162311     1.01   0.311    -.0153795    .0482451
                      |
             lninfant |
                  L1. |  -.0459177    .073314    -0.63   0.531    -.1896105     .097775
                      |
               ln_pop |
                  L1. |   .0281718    .042443     0.66   0.507     -.055015    .1113586
                      |
             dumcovid |   .1434181   .0952002     1.51   0.132    -.0431708     .330007
                _cons |    .335281   .6151128     0.55   0.586     -.870318     1.54088
----------------------+----------------------------------------------------------------
aidstatus             |
            aidstatus |
                  L1. |   1.000746   .0930948    10.75   0.000     .8182837    1.183209
                      |
  political_interests |
                  L1. |   .0270308   .0094066     2.87   0.004     .0085941    .0454675
                      |
        mediation_new |
                  L1. |   .3038378   .4058859     0.75   0.454     -.491684     1.09936
                      |
        qatarblockade |  -.6594466   .2133251    -3.09   0.002    -1.077556   -.2413371
       muslimmajority |   .7497104   .1222355     6.13   0.000     .5101332    .9892877
           arableague |   .2017318   .1785082     1.13   0.258    -.1481379    .5516015
                      |
ln_qatarimports_un_v2 |
                  L1. |    .000373   .0147554     0.03   0.980    -.0285472    .0292931
                      |
             lninfant |
                  L1. |   .2345108   .0602057     3.90   0.000     .1165098    .3525117
                      |
               ln_pop |
                  L1. |   .1070576   .0326742     3.28   0.001     .0430174    .1710979
                      |
             dumcovid |   .0951545   .0932949     1.02   0.308    -.0877002    .2780091
                _cons |  -3.525953   .4213879    -8.37   0.000    -4.351858   -2.700048
----------------------+----------------------------------------------------------------
              /athrho |  -1.346284   .2949266    -4.56   0.000     -1.92433   -.7682388
             /lnsigma |  -.4118948   .0845857    -4.87   0.000    -.5776796   -.2461099
----------------------+----------------------------------------------------------------
                  rho |  -.8731734   .0700652                     -.9582726   -.6459042
                sigma |    .662394    .056029                      .5611991    .7818363
---------------------------------------------------------------------------------------
Wald test of indep. eqns. (rho = 0): chi2(1) =    20.84   Prob > chi2 = 0.0000

. outreg2 using Table4.xls, bdec(4) pvalue tdec(4) asterisk(coef) drop(year*)  append 
Table4.xls
dir : seeout

. 
. 
. ***to calculate Margins
. quietly heckpoisson aidinteractions L.political_interests L.mediation_new muslimmajority arableague
>  L.ln_qatarimports_un_v2   L.ln_gdp_per_capita_WB L.ln_pop dumcovid, select (aidstatus= L.aidstatus
>  L.political_interests L.mediation_new muslimmajority arableague L.ln_qatarimports_un_v2  L.ln_gdp_
> per_capita_WB L.ln_pop  dumcovid)

. margins, dydx(*) predict(psel) post

Average marginal effects                                 Number of obs = 1,329
Model VCE: OIM

Expression: Pr(select), predict(psel)
dy/dx wrt:  L.political_interests L.mediation_new muslimmajority arableague L.ln_qatarimports_un_v2
            L.ln_gdp_per_capita_WB L.ln_pop dumcovid L.aidstatus

---------------------------------------------------------------------------------------
                      |            Delta-method
                      |      dy/dx   std. err.      z    P>|z|     [95% conf. interval]
----------------------+----------------------------------------------------------------
  political_interests |
                  L1. |   .0090156   .0028674     3.14   0.002     .0033956    .0146355
                      |
        mediation_new |
                  L1. |   .0459459   .1064192     0.43   0.666    -.1626318    .2545237
                      |
       muslimmajority |   .1577551    .054064     2.92   0.004     .0517915    .2637186
           arableague |   .0038739   .0390892     0.10   0.921    -.0727395    .0804873
                      |
ln_qatarimports_un_v2 |
                  L1. |   .0057592   .0035965     1.60   0.109    -.0012899    .0128083
                      |
 ln_gdp_per_capita_WB |
                  L1. |  -.0682113   .0198049    -3.44   0.001    -.1070283   -.0293943
                      |
               ln_pop |
                  L1. |   .0108388   .0076247     1.42   0.155    -.0041053    .0257829
                      |
             dumcovid |   .0162006    .020024     0.81   0.418    -.0230456    .0554468
                      |
            aidstatus |
                  L1. |    .212473   .0610758     3.48   0.001     .0927666    .3321794
---------------------------------------------------------------------------------------

. estimates store MarginTable4

. outreg2 using MarginTable4.xls, bdec(4) pvalue tdec(4) asterisk(coef) drop(year*)   replace
MarginTable4.xls
dir : seeout

. 
. 
. quietly heckpoisson aidinteractions L.political_interests L.mediation_new muslimmajority arableague
>  L.ln_qatarimports_un_v2  L.lninfant L.ln_pop dumcovid , select (aidstatus= L.aidstatus L.political
> _interests L.mediation_new muslimmajority arableague L.ln_qatarimports_un_v2  L.lninfant L.ln_pop d
> umcovid )

. margins, dydx(*) predict(psel) post

Average marginal effects                                 Number of obs = 1,309
Model VCE: OIM

Expression: Pr(select), predict(psel)
dy/dx wrt:  L.political_interests L.mediation_new muslimmajority arableague L.ln_qatarimports_un_v2
            L.lninfant L.ln_pop dumcovid L.aidstatus

---------------------------------------------------------------------------------------
                      |            Delta-method
                      |      dy/dx   std. err.      z    P>|z|     [95% conf. interval]
----------------------+----------------------------------------------------------------
  political_interests |
                  L1. |   .0074651   .0022385     3.33   0.001     .0030777    .0118525
                      |
        mediation_new |
                  L1. |   .1015234   .0986203     1.03   0.303    -.0917689    .2948157
                      |
       muslimmajority |   .1644216   .0278695     5.90   0.000     .1097982    .2190449
           arableague |   .0067974   .0406071     0.17   0.867     -.072791    .0863858
                      |
ln_qatarimports_un_v2 |
                  L1. |    .001282   .0035148     0.36   0.715     -.005607    .0081709
                      |
             lninfant |
                  L1. |   .0602104    .014202     4.24   0.000      .032375    .0880457
                      |
               ln_pop |
                  L1. |   .0235637   .0077559     3.04   0.002     .0083624     .038765
                      |
             dumcovid |   .0179705   .0223784     0.80   0.422    -.0258903    .0618313
                      |
            aidstatus |
                  L1. |   .2437874   .0192882    12.64   0.000     .2059833    .2815916
---------------------------------------------------------------------------------------

. estimates store MarginTable4

. outreg2 using MarginTable4.xls, bdec(4) pvalue tdec(4) asterisk(coef) drop(year*)   append 
MarginTable4.xls
dir : seeout

. 
. 
. quietly heckpoisson aidinteractions L.political_interests L.mediation_new qatarblockade muslimmajor
> ity arableague L.ln_qatarimports_un_v2   L.ln_gdp_per_capita_WB L.ln_pop dumcovid, select (aidstatu
> s= L.aidstatus L.political_interests L.mediation_new qatarblockade muslimmajority arableague L.ln_q
> atarimports_un_v2  L.ln_gdp_per_capita_WB L.ln_pop dumcovid)

. margins, dydx(*) predict(psel) post

Average marginal effects                                 Number of obs = 1,329
Model VCE: OIM

Expression: Pr(select), predict(psel)
dy/dx wrt:  L.political_interests L.mediation_new qatarblockade muslimmajority arableague
            L.ln_qatarimports_un_v2 L.ln_gdp_per_capita_WB L.ln_pop dumcovid L.aidstatus

---------------------------------------------------------------------------------------
                      |            Delta-method
                      |      dy/dx   std. err.      z    P>|z|     [95% conf. interval]
----------------------+----------------------------------------------------------------
  political_interests |
                  L1. |   .0081488   .0048686     1.67   0.094    -.0013935    .0176911
                      |
        mediation_new |
                  L1. |   .0175995   .0952277     0.18   0.853    -.1690434    .2042424
                      |
        qatarblockade |  -.1383826   .0812013    -1.70   0.088    -.2975343     .020769
       muslimmajority |   .1707988   .0758417     2.25   0.024     .0221517    .3194458
           arableague |   .0399592    .041708     0.96   0.338    -.0417869    .1217054
                      |
ln_qatarimports_un_v2 |
                  L1. |   .0048449   .0041914     1.16   0.248    -.0033702      .01306
                      |
 ln_gdp_per_capita_WB |
                  L1. |  -.0661407   .0354284    -1.87   0.062    -.1355791    .0032977
                      |
               ln_pop |
                  L1. |   .0122946   .0088199     1.39   0.163    -.0049921    .0295814
                      |
             dumcovid |   .0215882   .0242221     0.89   0.373    -.0258862    .0690625
                      |
            aidstatus |
                  L1. |   .2096579   .1044474     2.01   0.045     .0049448     .414371
---------------------------------------------------------------------------------------

. estimates store MarginTable4

. outreg2 using MarginTable4.xls, bdec(4) pvalue tdec(4) asterisk(coef) drop(year*)   append
MarginTable4.xls
dir : seeout

. 
. 
. quietly heckpoisson aidinteractions L.political_interests L.mediation_new qatarblockade muslimmajor
> ity arableague L.ln_qatarimports_un_v2  L.lninfant L.ln_pop dumcovid, select (aidstatus= L.aidstatu
> s L.political_interests L.mediation_new qatarblockade muslimmajority arableague L.ln_qatarimports_u
> n_v2  L.lninfant L.ln_pop dumcovid)

. margins, dydx(*) predict(psel) post

Average marginal effects                                 Number of obs = 1,309
Model VCE: OIM

Expression: Pr(select), predict(psel)
dy/dx wrt:  L.political_interests L.mediation_new qatarblockade muslimmajority arableague
            L.ln_qatarimports_un_v2 L.lninfant L.ln_pop dumcovid L.aidstatus

---------------------------------------------------------------------------------------
                      |            Delta-method
                      |      dy/dx   std. err.      z    P>|z|     [95% conf. interval]
----------------------+----------------------------------------------------------------
  political_interests |
                  L1. |   .0064649   .0022299     2.90   0.004     .0020944    .0108354
                      |
        mediation_new |
                  L1. |   .0726684   .0971356     0.75   0.454    -.1177139    .2630507
                      |
        qatarblockade |  -.1577188   .0508719    -3.10   0.002    -.2574258   -.0580117
       muslimmajority |    .179307   .0281368     6.37   0.000     .1241598    .2344542
           arableague |   .0482479   .0426815     1.13   0.258    -.0354064    .1319022
                      |
ln_qatarimports_un_v2 |
                  L1. |   .0000892   .0035291     0.03   0.980    -.0068277    .0070061
                      |
             lninfant |
                  L1. |   .0560875   .0142725     3.93   0.000     .0281139    .0840612
                      |
               ln_pop |
                  L1. |   .0256048   .0077073     3.32   0.001     .0104987    .0407109
                      |
             dumcovid |   .0227579   .0222783     1.02   0.307    -.0209067    .0664226
                      |
            aidstatus |
                  L1. |   .2393468   .0196782    12.16   0.000     .2007782    .2779154
---------------------------------------------------------------------------------------

. estimates store MarginTable4

. outreg2 using MarginTable4.xls, bdec(4) pvalue tdec(4) asterisk(coef) drop(year*)   append
MarginTable4.xls
dir : seeout

. 
. 
. log close
-----------------------------------------------------------------------------------------------------
